---
layout: "default"
title: "withVaList"
description: "Swift documentation for 'withVaList': Invoke f with a C va_list argument derived from args."
keywords: "withVaList,func,swift,documentation"
root: "/v1.2"
---

<div class="declaration" id="func-withvalist-r_-cvarargtype-f_-noescape-cvalistpointer-r">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-withvalist-r_-cvarargtype-f_-noescape-cvalistpointer-r">func withVaList&lt;R&gt;(<wbr>_:<wbr> [CVarArgType], f: @noescape CVaListPointer -&gt; R)</a>
        
<div class="comment collapse" id="comment-func-withvalist-r_-cvarargtype-f_-noescape-cvalistpointer-r"><div class="p">
    <p>Invoke <code>f</code> with a C <code>va_list</code> argument derived from <code>args</code>.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func withVaList&lt;R&gt;(args: [CVarArgType], f: @noescape CVaListPointer -&gt; R) -&gt; R</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-withvalist-r_-valistbuilder-f_-noescape-cvalistpointer-r">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-withvalist-r_-valistbuilder-f_-noescape-cvalistpointer-r">func withVaList&lt;R&gt;(<wbr>_:<wbr> VaListBuilder, f: @noescape CVaListPointer -&gt; R)</a>
        
<div class="comment collapse" id="comment-func-withvalist-r_-valistbuilder-f_-noescape-cvalistpointer-r"><div class="p">
    <p>Invoke <code>f</code> with a C <code>va_list</code> argument derived from <code>builder</code>.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func withVaList&lt;R&gt;(builder: VaListBuilder, f: @noescape CVaListPointer -&gt; R) -&gt; R</code>
    
    
</div></div>
</div>
